import numpy as np
from sklearn.linear_model import LinearRegression
x=np.array([[100],[113],[90],[89],[60],[70],[50],[45],[55],[78]])
y=np.array([[301],[324],[285],[296],[200],[260],[300],[120],[180],[245]])
model = LinearRegression()
model.fit(x,y)
y2=model.predict(x)
plx.xlabel('面积')
plx.ylabel('售价')
plt.rcparms['font.sans-serif']='Simhei'
plt.axis([40,125,100,400])
plt.scatter(x,y, s=60,c='k',maeker='0')
plt.plot(x,y2,'r-')
plt.show()